<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        localStorage.setItem('name','张三')
        localStorage.setItem('age',20)
        localStorage.setItem('ismarry',false)
        localStorage.setItem('hobby',JSON.stringify(['篮球','足球']))
        localStorage.setItem('dog',JSON.stringify({name:"iris",age:2,sex:'gorl'}))
    </script>
</body>
</html>